package com.emm.yixun.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.report.mapper.CityHotMapper;
import com.emm.yixun.report.domain.CityHot;
import com.emm.yixun.report.domain.dto.CityTransactions;
import com.emm.yixun.report.service.ICityHotService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

/**
 *
 * CityHot 表数据服务层接口实现类
 *
 */
@Service
public class CityHotServiceImpl extends SuperServiceImpl<CityHotMapper, CityHot> implements ICityHotService {
	@Autowired
	private CityHotMapper cityHotMapper;

	/**
	 * 城市成交热力图【各项目认购、签约套数及金额】
	 * @param merchantId
	 * @return CityTransactions
	 */
	@Override
	public List<CityTransactions> selectProjectTransactions(long merchantId) {
		return cityHotMapper.selectProjectTransactions(merchantId);
	}

	/**
	 * 城市成交热力图【各城市认购、签约套数及金额】
	 * @param merchantId
	 * @return
	 */
	@Override
	public List<CityTransactions> selectCityTransactions(long merchantId) {
		return cityHotMapper.selectCityTransactions(merchantId);
	}

}